Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: this is an old problem (although I thought was fixed in 6.x)
~Naomi Deskroterakol 3.Dec.03 06:48 PM a Web browser
Domino Designer 6.0.2 CF2 Windows 2000


Actually, that's not the *only* way around it.

I used to create a class for this kind of thing called Cache. In my cache, I set up method to retain database handles in a list. In any new class, it had a property of localCache. The Cache was passed in on the New method for all classes. That way, all open database handles were passed between all objects. Any attempt to open a database was called through a method in the cache, which added it to the list, and therefore did not open a second, locally scoped handle each time. This *significantly* improved performance on complex class structures in Lotuscript (we're talking about 30 times speed).

I don't think LS will ever be changed in such a way that you can return a document handle from a locally scoped database. You always have to have the database handle accessible either in your calling scope, or on some global level.

The easiest solution in this case is to set the database as an additional parameter to your function, so it's declared in the calling function by reference. That way, you still have the db handle scoped when the document is passed back.




Class property from another ScriptL... (~Sarah Ekfanate... 3.Dec.03)
. . this is an old problem (although I ... (~Julia Umhipibu... 3.Dec.03)
. . . . RE: this is an old problem (althoug... (~Naomi Deskrote... 3.Dec.03)
. . . . . . RE: this is an old problem (althoug... (~Paul Elvelu 4.Dec.03)
. . SOLUTION !!! Class property from an... (~Sarah Ekfanate... 19.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS